package cn.gok.demo.entity;

import cn.gok.demo.base.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * ClassName : cn.edu.qzit.linpq.entity.User
 * Desc : 用户实体类
 *
 * @author : LINPQ
 * @date : 2022/6/16 11:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity {

    private Integer id;
    private String name;
    private Integer age;
    private Date createtime;
    private Date updatetime;

    public void setCreateTime() {
        super.setCreateTime(this.createtime);
    }

    public void setUpdateTime() {
        super.setUpdateTime(this.updatetime);
    }
}
